package com.atguigu.providerticker.controller;

import com.atguigu.providerticker.service.TicketService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/07 16:29 周一
 * @description :
 */
@RestController
@AllArgsConstructor
public class TicketController {

    private final TicketService ticketService;

    @GetMapping("/ticket")
    public String getTicket() {
        return ticketService.getTicket();
    }
}
